package models

import (
	"database/sql"
)

type User struct {
	Id          int64   `json:"id"`
	Username    string  `json:"username"`
	Password    string  `json:"password"`
	Email       string  `json:"email"`
	Mobile      string  `json:"mobile"`
	UserBalance float64 `json:"user_balance"`
	UserPhoto   string  `json:"user_photo"`
	Time
}

type Goods struct {
	Id             int64
	GoodsName      string
	GoodsPrice     float64
	GoodsInventory int
	GoodsTypeId    int64
	Time
}

type Time struct {
	CreatedAt string
	UpdatedAt string
	DeletedAt sql.NullTime `gorm:"index"`
}
